<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-updlog-edit" >
		<input id="id" name="id"th:value="${updlog.id}"  type="hidden">
			<div class="form-group">
			<label class="col-sm-3 control-label">公告内容：</label>
			<div class="col-sm-8">
				<input id="content" name="content"th:value="${updlog.content}" class="form-control" type="text">
			</div>
		</div>
				<div class="form-group">
			<label class="col-sm-3 control-label">公告状态（0正常 1关闭）：</label>
			<div class="col-sm-8">
				<!--<input id="status"  name="status"th:value="${updlog.status}" class="form-control time-input" type="text"> -->
				<div class="onoffswitch">
					<input type="checkbox" th:checked="${updlog.status? true : false}" class="onoffswitch-checkbox" id="status" name="status">
					<label class="onoffswitch-label" for="status">
						<span class="onoffswitch-switch"></span>
						<span class="onoffswitch-inner"></span>
					</label>
				</div>
			</div>
		</div>

				<div class="form-group">
			<label class="col-sm-3 control-label">备注：</label>
			<div class="col-sm-8">
				<input id="remark" name="remark"th:value="${updlog.remark}" class="form-control" type="text">
			</div>
		</div>
		</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
	var prefix = ctx + "sys/updlog";
	$("#form-updlog-edit").validate({
		onkeyup: false,
		rules:{
			xxxx:{
				required:true,
			},
		}
	});

	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/editDo", $('#form-updlog-edit').serialize());
		}
	}
</script>
</body>
</html>
